package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-06-13
 */
@Data
@TableName("wireless_sensors")
public class WirelessSensors implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sensor_id", type = IdType.AUTO)
    private Integer sensorId;

    private Boolean sensorDeleted;

    private String sensorClass;

    private Integer deviceId;

    private String sensorIndex;

    private String sensorType;

    private String sensorDescr;

    private Integer sensorDivisor;

    private Integer sensorMultiplier;

    private String sensorAggregator;

    private Object sensorCurrent;

    private Object sensorPrev;

    private Object sensorLimit;

    private Object sensorLimitWarn;

    private Object sensorLimitLow;

    private Object sensorLimitLowWarn;

    private Boolean sensorAlert;

    private String sensorCustom;

    @TableField(value = "entPhysicalIndex")
    private String entPhysicalIndex;
    @TableField(value = "entPhysicalIndex_measured")
    private String entphysicalindexMeasured;

    private LocalDateTime lastupdate;

    private String sensorOids;

    private Integer accessPointId;

    private String rrdType;
}
